<%@ page language="java" contentType="text/html; charset=UTF-8"
    %>
<%@page import="java.io.*" %>
<%@page import="java.util.*" %>
<%@page import="com.ubst.smartad.common.FileUtil" %>
<%@page import="com.ubst.smartad.common.IpChecker" %>
<%@page import="com.ubst.smartad.common.PropUtils" %>
<%@page import="com.ubst.smartad.env.FileHostEnv" %>
<%
	FileHostEnv fhostEnv = FileHostEnv.getInitInstance("");
	/*
	String user_home = FileUtil.getFilePath(System.getProperty("user.home"));
	String serverName = request.getServerName();
	File setup_file = new File(user_home+"conf"+File.separator+serverName+File.separator+"setup.ini");
	if(setup_file.exists()){
		Properties prop = PropUtils.loadPropFile(setup_file);
		String setup_flag = prop.getProperty("setup")==null?"false":prop.getProperty("setup");
		setup_flag = setup_flag.toLowerCase();

		String agent = request.getHeader("USER-AGENT");
		if(agent.toLowerCase().indexOf("mobile")==-1){
			if(setup_flag.equals("true")){
				response.sendRedirect( "/servlet/org.soft25.license.LicenseServlet" );
			}else{	// 서버정보 및 기본사용자 초기화 페이지로 이동
				if(IpChecker.isSetupValidIP(user_home, serverName, request.getRemoteAddr()) ){
					response.sendRedirect( "/setup/setup.jsp" );
				}else{
					response.sendRedirect( "/jsp/err/error.jsp?errcode=11" );
				}
			}
		}else{
			if(setup_flag.equals("true")){
				// 모바일 기기에서 접속하는 루틴 추가

				/////////////////////////////////////
			}else{
				response.sendRedirect( "/jsp/err/error.jsp?errcode=13" );
			}
		}
	}else{
		System.out.println("<!> Setup File Not Found : conf"+File.separator+serverName+File.separator+"setup.ini");
		response.sendRedirect( "/jsp/err/error.jsp?errcode=12" );
	}
	*/
	response.sendRedirect( "/jsp/admin/login/login_index.jsp" );
	//response.sendRedirect( "/jsp/admin/status/manage.jsp" );

%>
